compare and ordering fractions